/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Ex4_FooBizBaz;

/**
 *
 * @author Root
 */
public class FooBizBaz {

    public static void main(String[] args) {
        Foobizbaz foo = new Foobizbaz();
        foo.foobizbaz(50);
    }

    private static class Foobizbaz {

        private void foobizbaz(int i) {

            for (int j = 1; j < i; j++) {
                System.out.print(j);
                if (j % 3 == 0) {
                    System.out.print("  foo");
                }
                if (j % 5 == 0) {
                    System.out.print("  biz");
                }
                if (j % 7 == 0) {
                    System.out.println("  baz");
                }
                System.out.println("");

            }
        }
    }
}
